﻿/***********************************************************************
 *            Project: CoreCms
 *        ProjectName: 核心内容管理系统                                
 *                Web: https://www.corecms.net                      
 *             Author: 大灰灰                                          
 *              Email: jianweie@163.com                                
 *         CreateTime: 2021/1/31 21:45:10
 *        Description: 暂无
 ***********************************************************************/


using System.ComponentModel.DataAnnotations;
using System.Xml.Linq;

namespace CoreCms.Net.Model.FromBody
{
    internal class FMProducts
    {
    }


    /// <summary>
    ///     获取子规格
    /// </summary>
    public class ItemSpesDesc
    {
        public string name { get; set; } = string.Empty;
        public bool isDefault { get; set; } = false;
        public int productId { get; set; } = 0;
    }


    /// <summary>
    ///     获取相应规格
    /// </summary>
    public class DefaultSpesDesc
    {
        public string name { get; set; } = string.Empty;
        public bool isDefault { get; set; } = false;
        public int productId { get; set; } = 0;
        public string image { get; set; } = string.Empty;

    }

    /// <summary>
    /// 获取商品sku列表传递
    /// </summary>
    public class FMGetSku
    {
        /// <summary>
        ///     序列
        /// </summary>
        [Display(Name = "序列")]
        [Required(ErrorMessage = "请输入要提交的序列参数")]
        public int id { get; set; }

        /// <summary>
        /// 是否计算优惠
        /// </summary>
        public bool isPromotion { get; set; } = false;

        /// <summary>
        /// 获取类型
        /// </summary>
        public string type { get; set; } = "goods";

        /// <summary>
        /// 团购或秒杀传递的业务序列
        /// </summary>
        public int groupId { get; set; } = 0;
    }


}